/************************************************************************/
/* 
mencoder twolameopts setting class
author pengl
date 2008-11-26

toolame and twolame (-toolameopts and -twolameopts respectively)
br=<32-384>
In CBR mode this parameter indicates the bitrate in  kbps,  when
in  VBR  mode  it is the minimum bitrate allowed per frame.  VBR
mode will not work with a value below 112.

vbr=<-50-50> (VBR only)
variability range; if negative the encoder  shifts  the  average
bitrate towards the lower limit, if positive towards the higher.
When set to 0 CBR is used (default).

maxvbr=<32-384> (VBR only)
maximum bitrate allowed per frame, in kbps

mode=<stereo | jstereo | mono | dual>
(default: mono for 1-channel audio, stereo otherwise)

psy=<-1-4>
psychoacoustic model (default: 2)

errprot=<0 | 1>
Include error protection.

debug=<0-10>
debug level
*/
/************************************************************************/

#include "StdAfx.h"
#include ".\twolameopts.h"


static char *gtwolane_name = "twolame";
static char gtwolame_opts[1024] = {0};

Ctwolameopts::Ctwolameopts(void)
{	
}

Ctwolameopts::~Ctwolameopts(void)
{
}

char *Ctwolameopts::get_myname() const
{
	return gtwolane_name;
}

void Ctwolameopts::set_twolameops(Ps_twolameopts opts)
{
	m_s_twolameopts = *opts;
}

char *Ctwolameopts::get_twolameopts()
{
	sprintf(gtwolame_opts, "-oac toolame -toolameopts br=%d ", 
			m_s_twolameopts.twolame_br)	;

	return gtwolame_opts;
}



